const Hook = require('./Hook')
const HookCodeFactory = require('./HookCodeFactory')
class SyncParallelHookCodeFactory extends HookCodeFactory {
  content(){
    this.callTapParallel()
  }

}

const factory = new SyncParallelHookCodeFactory();

class SyncParallelHook extends Hook {
  compile(options){
    factory.setup(this,options ) // 先把Hook实例和配置对象传进去
    return factory.create(options) //创建一个新的函数
  }
}

module.exports = SyncParallelHook